home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950528-19950726
/
000305_news@columbia.edu_Tue Jul 11 01:26:08 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA08380
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 11 Jul 1995 09:57:07 -0400
Received: by apakabar.cc.columbia.edu id AA21390
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 11 Jul 1995 09:57:07 -0400
Path: news.columbia.edu!panix!news.mathworks.com!gatech!swrinde!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: 3.13 Expression Eval Fails In 3.14
Message-Id: <1995Jul11.072608.55791@cc.usu.edu>
Date: 11 Jul 95 07:26:08 MDT
References: <3tt06c$3do@ds2.acs.ucalgary.ca>
Organization: Utah State University
Lines: 44
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3tt06c$3do@ds2.acs.ucalgary.ca>, dddau@acs3.acs.ucalgary.ca (Doug Dau) writes:
> The following MSK 3.13 macro which iterates through a list of
> phone numbers, dialing each one in turn until it either gets a
> connection or fails to connect to any of the numbers, is failing
> when I try to run it under the May 21/95 patch level 8 version of
> MSK 3.14.
>
> COM MACRO TO MANAGE DIALING A LIST OF PHONE NUMBERS.
> def TRY set count \v(argc),if count,-
> :NXT,clear both,hangup,assign _dialnum \%\v(count),dial,if succ end 0,if
count go :NXT,-
^^^^---------- Nope. The name of the label is NXT, not :NXT.
> def \%z f
>
> where the macro would be invoked as
>
> try phoneno1 phoneno2 phoneno3 ... phoneno9
>
> The problem seems to trace down to how the expression
>
> assign _dialnum \%\v(count)
>
> is evaluated. Formerly it would evaluate to the phone number
> associated with the argument being pointed to by "count" (don't
> believe the syntax was quite kosher according to the manual but
> it worked). Under 3.14 the best I can do is get the expression
> to evaluate to the symbolic arguments (\%9, \%8, etc) if I code
> the fragment as
>
> assign _dialnum \\\{37}\v(count)
>
> so it looks like 3.13 rescans and reduces the expression until
> there is nothing left to substitute while 3.14 just scans the
> expression once and quits.
There is different parser logic in MSK 3.14. As you have noted,
it does depth first recursion but it no longer backs up to reparse the
whole command line every time.
I suggest you deal with explicit strings if possible, rather
than \%<digit> substitution variables. Amongst other aspects \%<digit>
become command line arguments when invoking other macros. Then use
string concatenation to form the target phone number string.
Joe D.